<!DOCTYPE>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="__PUBLIC__/Home/css/user_center.css">
    <script type="text/javascript" src="__PUBLIC__/Admin/js/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Common/Layer/layer.js"></script>
    <title>会员中心</title>
</head>

<body>
<!-- 栏目 -->
<include file="Public:header_center" />

<!-- 内容 -->
<style>
    .col_detail{
        width: 250px;
        height:260px;
        
        margin: 10px 5px;
        float: left;
    }

    .col_detail ul {
        width: 250px;
       /*  margin: 5px auto; */
    }


</style>
<script>
    function del(a){
      $.ajax({
           type: "POST",
           url: "{:U('User/coupons_del')}",
           data: "id="+a,
           success: function(msg){
             if(msg==1){
                    parent.layer.msg('操作成功', { icon: 1, time: 1000 },function(){
                    window.location.href="__SELF__";
                });
             }else{
                    parent.layer.msg('操作失败', {icon: 2, time: 2000 }); 
             }
           }
        });

    }

</script>
<div style="background-color:#f5f5f5;">
    <div class="content" style="width:1200px;">

        <include file="Public:left_center" />

        <div class="center-right right">
            <h3 class="title">我的优惠券</h3>
            <div class="Options" style=" width:1050px; background-color:#FFF; padding:20px;">

                <div id="content"  style="overflow: hidden;zoom: 1">

                  <foreach name="list" item="vo">
                        <div class="col_detail" style="float:left; height:200px;">
                            <ul>
                               <li style="background:#74d2d4;width:244px;height:105px;">
                                <span style="float:right;"><a href="javascript:;" onclick="del({$vo.id})">删除</a></span>
                                  <p style="text-align:center;padding-top:5px;font-size:30px;font-
weight:bold;color:#fff;">￥{$vo.money_youhui}</p>
                                  <p style="text-align:center;padding-top:5px;color:#fff;">【{$vo.money_xianzhi}】</p>
                                  <p style="text-align:center;padding-top:5px;color:#666;">{$vo.begin_date}-

{$vo.end_date}</p>
                               </li>
                               <li style="text-align:center;background:#faf9f9;width:244px;height:40px;padding:25px 0px">
                                   <if condition="$vo.use_status eq 0">
     <div style="border-radius:15px;margin:0 auto;color:#74d2d4;border:1px solid #74d2d4; 
height:30px;width:100px;line-height:30px">未使用</div>
 <else/><div style="text-algin:center;">使用时间：{$vo.use_date}&nbsp;订单ID：
{$vo.orders_id}</div>
 </if>
                               </li>
                            </ul>
                        </div>
                   </foreach>
                    </div>
                    
                <div>
                    {$page}
                </div>

                </div>
            </div>

        </div>
    </div>
    <!-- 底部 -->
    <include file="Public:footer_center" />
</body>
</html>
